import request from "@/utils/request";

//部门列表查询
export const getAllDept = () => request.get("/depts");

//增加部门
export const addApi = (dept) => request.post('/depts', dept);

//根据id查询部门名称
export const queryByIdApi = (id) => request.get(`/depts/${id}`);

//编辑部门
export const editApi = (dept) => request.put('/depts', dept);

//删除部门
export const deleteByIdApi = (ids) => request.delete(`/depts?id=${ids}`);